// 服务管理接口
import request from '@/utils/request';
// 获取服务管理列表
// POST /selectservices?pageNum=${pageNum}&pageSize=${pageSize}&typeid=${typeid}&mid=${mid}&serviceitem=${serviceitem}
// 参数： 查询字符串
export const reqServiceManagerList = (pageNum, pageSize, typeid, mid, serviceitem, name) => request({ url: `/selectservices?pageNum=${pageNum}&pageSize=${pageSize}&typeid=${typeid}&mid=${mid}&serviceitem=${serviceitem}&name=${name}`, method: "POST" });

export const reqServiceTypeList = () => request({ url: `/selectservicetype`, method: "GET" });

export const reqAddServiceManagerList = (query) => request({ url: `/addservicetype`, method: "POST", data: query });

export const reqDeleteById = (id) => request({url:`/delservicetype?id=${id}`,method: "POST"})
//GET /selectmer
export const reqSelectMer = ()=> request({ url: `/selectmer`, method: "GET"});
// POST /addservice
// formData
export const reqAddService = (query)=>request({url:`/addservice`,method: "POST", data: query});
// GET /delservice?id=1040
export const reqDeleteServiceById = (id) => request({url:`/delservice?id=${id}`,method: "GET"});


